package itheima.d02;
//掌握线程的创建方式二：实现Runnable接口
public class ThreadTest2 {
    public static void main(String[] args) {
        Runnable target = new MyRunnable();

        Thread t1 = new Thread(target);
        t1.start();


        for (int i = 1; i <= 5; i++) {
            System.out.println("主线程main：" + i);
        }


    }
}
